<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Get Cookie</title>
    <style>
        body {
            width: 400px;
            padding: 10px;
            font-family: Arial, sans-serif;
        }
        button {
            width: 100%;
            padding: 8px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-bottom: 10px;
        }
        button:hover {
            background-color: #45a049;
        }
        #status {
            margin-top: 10px;
            padding: 8px;
            text-align: center;
        }
        .success {
            color: #4CAF50;
        }
        .error {
            color: #f44336;
        }
        #cookieDetails {
            margin-top: 10px;
            max-height: 200px;
            overflow-y: auto;
            font-family: monospace;
            font-size: 12px;
            background-color: #f5f5f5;
            padding: 10px;
            border-radius: 4px;
            white-space: pre-wrap;
            word-break: break-all;
        }
        .cookie-count {
            margin-top: 10px;
            color: #666;
            font-size: 12px;
            text-align: right;
        }
        .controls {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }
        .controls button {
            margin: 0;
        }
        #toggleDetails {
            background-color: #2196F3;
        }
        #toggleDetails:hover {
            background-color: #1976D2;
        }
    </style>
</head>
<body>
    <div class="controls">
        <button id="getCookieBtn">获取Cookie</button>
        <button id="toggleDetails">显示详情</button>
    </div>
    <div id="status"></div>
    <div id="cookieDetails" style="display: none;"></div>
    <div class="cookie-count" id="cookieCount"></div>
    <script src="popup.js"></script>
</body>
</html>